package com.example.capsule_netty.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.capsule_netty.bean.UserInfoBean;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * @Author: zhuzhiming
 * @Date: 2022/5/5 21:29
 */
public interface UserInfoMapper extends BaseMapper<UserInfoBean> {


    @Update("update user_info set avatar_server_path = #{avatarServerPath} where id = #{senderId}")
    void updateAvatar(@Param("senderId") String senderId, @Param("avatarServerPath")String avatarServerPath);
}
